package com.ryskoo.common.hclconstant;

/**
 * 店铺风格
 * 
 * @author ddy
 *
 */
public enum VendorStyleEnum {

	RED(1, "红色"), YELLOW(2, "黄色"), GREEN(3, "绿色"), ORANGE(2, "橙色");
	private int value;
	private String name;

	VendorStyleEnum(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static String getNameByValue(int value) {
		for (VendorStyleEnum o : VendorStyleEnum.values()) {
			if (o.getValue() == value) {
				return o.getName();
			}
		}
		return "";
	}
}
